class CreateSearches < ActiveRecord::Migration
  def self.up
    create_table :searches do |t|
      t.string :name
      t.integer :sex
      t.integer :min_age
      t.integer :max_age
      t.integer :region
      t.string :province, :limit=>2
      t.string :lao_code, :limit=>6
      t.integer :user_type
      t.integer :education
      t.integer :course1_score
      t.integer :course2_score
      t.integer :course3_score
      t.integer :course4_score
      t.integer :course5_score

      t.timestamps
    end
  end

  def self.down
    drop_table :searches
  end
end
